package com.test.webflux.service.impl;

import com.test.webflux.entity.ResponseResult;
import com.test.webflux.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Mono;

/**
 * TODO
 *
 * @Description
 * @Author lingmin
 * @Date 2025/4/14 15:41
 **/
@Slf4j
@Service
public class UserServiceImpl implements UserService {

    public Mono<String> getTitle(){
        log.info("title");
        return Mono.just("用户信息");
    }

    @Override
    public Mono<ResponseResult<String>> list() {
        log.info("users");
        ResponseResult result = new ResponseResult();
        result.setCode("000000");
        result.setMsg("成功");
        result.setData("获取用户信息成功");
        return Mono.just(result);
    }
}
